package com.foreknow.dao;

import com.foreknow.entity.Rule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface RuleDao {
    //    @Select("SELECT a.*,user.RealName FROM (SELECT * FROM rule WHERE DeptID =#{deptid}) a JOIN user ON a.userid=  user.ID")
    List<Rule> selectForRuleListPage(@Param("deptId") Integer deptId, @Param("start") Integer start, @Param("offset") Integer offset);

}